package com.direct.ssh.dao;

import java.io.Serializable;
import java.util.List;


public interface BaseDao<T> {
	
	public void add(T t);
	public void update(T t);
	public void delete(T t);
	public T queryById(Class c,Serializable id);
	public T querySingle(String hql, Object[] params);
	public long queryCount(String hql, Object[] params);
	public List<T> queryList(String hql, Object[] params);
	public List<T> queryList(String hql, Object[] params, int pn, int pr);
}
